package com.eshop.modules.activity.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import com.eshop.modules.product.domain.StoreProduct;
import java.util.List;
import java.math.BigDecimal;
import java.io.Serializable;

public class StoreCouponDto implements Serializable
{
    private Integer id;
    private String title;
    private Integer integral;
    private BigDecimal couponPrice;
    private BigDecimal useMinPrice;
    private Integer couponTime;
    private Integer sort;
    private Integer status;
    private Integer type;
    private String productId;
    private List<StoreProduct> product;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    
    public Integer getId() {
        return this.id;
    }
    
    public String getTitle() {
        return this.title;
    }
    
    public Integer getIntegral() {
        return this.integral;
    }
    
    public BigDecimal getCouponPrice() {
        return this.couponPrice;
    }
    
    public BigDecimal getUseMinPrice() {
        return this.useMinPrice;
    }
    
    public Integer getCouponTime() {
        return this.couponTime;
    }
    
    public Integer getSort() {
        return this.sort;
    }
    
    public Integer getStatus() {
        return this.status;
    }
    
    public Integer getType() {
        return this.type;
    }
    
    public String getProductId() {
        return this.productId;
    }
    
    public List<StoreProduct> getProduct() {
        return this.product;
    }
    
    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setId(final Integer id) {
        this.id = id;
    }
    
    public void setTitle(final String title) {
        this.title = title;
    }
    
    public void setIntegral(final Integer integral) {
        this.integral = integral;
    }
    
    public void setCouponPrice(final BigDecimal couponPrice) {
        this.couponPrice = couponPrice;
    }
    
    public void setUseMinPrice(final BigDecimal useMinPrice) {
        this.useMinPrice = useMinPrice;
    }
    
    public void setCouponTime(final Integer couponTime) {
        this.couponTime = couponTime;
    }
    
    public void setSort(final Integer sort) {
        this.sort = sort;
    }
    
    public void setStatus(final Integer status) {
        this.status = status;
    }
    
    public void setType(final Integer type) {
        this.type = type;
    }
    
    public void setProductId(final String productId) {
        this.productId = productId;
    }
    
    public void setProduct(final List<StoreProduct> product) {
        this.product = product;
    }
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof StoreCouponDto)) {
            return false;
        }
        final StoreCouponDto other = (StoreCouponDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$integral = this.getIntegral();
        final Object other$integral = other.getIntegral();
        Label_0102: {
            if (this$integral == null) {
                if (other$integral == null) {
                    break Label_0102;
                }
            }
            else if (this$integral.equals(other$integral)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$couponTime = this.getCouponTime();
        final Object other$couponTime = other.getCouponTime();
        Label_0139: {
            if (this$couponTime == null) {
                if (other$couponTime == null) {
                    break Label_0139;
                }
            }
            else if (this$couponTime.equals(other$couponTime)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$sort = this.getSort();
        final Object other$sort = other.getSort();
        Label_0176: {
            if (this$sort == null) {
                if (other$sort == null) {
                    break Label_0176;
                }
            }
            else if (this$sort.equals(other$sort)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$status = this.getStatus();
        final Object other$status = other.getStatus();
        Label_0213: {
            if (this$status == null) {
                if (other$status == null) {
                    break Label_0213;
                }
            }
            else if (this$status.equals(other$status)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$type = this.getType();
        final Object other$type = other.getType();
        Label_0250: {
            if (this$type == null) {
                if (other$type == null) {
                    break Label_0250;
                }
            }
            else if (this$type.equals(other$type)) {
                break Label_0250;
            }
            return false;
        }
        final Object this$title = this.getTitle();
        final Object other$title = other.getTitle();
        Label_0287: {
            if (this$title == null) {
                if (other$title == null) {
                    break Label_0287;
                }
            }
            else if (this$title.equals(other$title)) {
                break Label_0287;
            }
            return false;
        }
        final Object this$couponPrice = this.getCouponPrice();
        final Object other$couponPrice = other.getCouponPrice();
        Label_0324: {
            if (this$couponPrice == null) {
                if (other$couponPrice == null) {
                    break Label_0324;
                }
            }
            else if (this$couponPrice.equals(other$couponPrice)) {
                break Label_0324;
            }
            return false;
        }
        final Object this$useMinPrice = this.getUseMinPrice();
        final Object other$useMinPrice = other.getUseMinPrice();
        Label_0361: {
            if (this$useMinPrice == null) {
                if (other$useMinPrice == null) {
                    break Label_0361;
                }
            }
            else if (this$useMinPrice.equals(other$useMinPrice)) {
                break Label_0361;
            }
            return false;
        }
        final Object this$productId = this.getProductId();
        final Object other$productId = other.getProductId();
        Label_0398: {
            if (this$productId == null) {
                if (other$productId == null) {
                    break Label_0398;
                }
            }
            else if (this$productId.equals(other$productId)) {
                break Label_0398;
            }
            return false;
        }
        final Object this$product = this.getProduct();
        final Object other$product = other.getProduct();
        Label_0435: {
            if (this$product == null) {
                if (other$product == null) {
                    break Label_0435;
                }
            }
            else if (this$product.equals(other$product)) {
                break Label_0435;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        if (this$createTime == null) {
            if (other$createTime == null) {
                return true;
            }
        }
        else if (this$createTime.equals(other$createTime)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof StoreCouponDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $integral = this.getIntegral();
        result = result * 59 + (($integral == null) ? 43 : $integral.hashCode());
        final Object $couponTime = this.getCouponTime();
        result = result * 59 + (($couponTime == null) ? 43 : $couponTime.hashCode());
        final Object $sort = this.getSort();
        result = result * 59 + (($sort == null) ? 43 : $sort.hashCode());
        final Object $status = this.getStatus();
        result = result * 59 + (($status == null) ? 43 : $status.hashCode());
        final Object $type = this.getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        final Object $title = this.getTitle();
        result = result * 59 + (($title == null) ? 43 : $title.hashCode());
        final Object $couponPrice = this.getCouponPrice();
        result = result * 59 + (($couponPrice == null) ? 43 : $couponPrice.hashCode());
        final Object $useMinPrice = this.getUseMinPrice();
        result = result * 59 + (($useMinPrice == null) ? 43 : $useMinPrice.hashCode());
        final Object $productId = this.getProductId();
        result = result * 59 + (($productId == null) ? 43 : $productId.hashCode());
        final Object $product = this.getProduct();
        result = result * 59 + (($product == null) ? 43 : $product.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "StoreCouponDto(id=" + this.getId() + ", title=" + this.getTitle() + ", integral=" + this.getIntegral() + ", couponPrice=" + this.getCouponPrice() + ", useMinPrice=" + this.getUseMinPrice() + ", couponTime=" + this.getCouponTime() + ", sort=" + this.getSort() + ", status=" + this.getStatus() + ", type=" + this.getType() + ", productId=" + this.getProductId() + ", product=" + this.getProduct() + ", createTime=" + this.getCreateTime() + ")";
    }
}
